﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SGGWElevator.Controllers
{
    // Singleton
    public class MainController : ControllerBase
    {
        #region Singleton
        public static MainController _instance = null;

        public static MainController Instance
        {
            get
            {
                if (_instance == null)
                    _instance = new MainController();

                return _instance;
            }
        }
        #endregion
        
        /// <summary>
        /// List of elevator controllers.
        /// Author: Paweł Iżycki
        /// </summary>
        public readonly List<ElevatorController> _elevatorControllers;

        private MainController() // Should remain private, in sake of Singleton pattern.
        {
            _elevatorControllers = new List<ElevatorController>();
        }
    }    
}
